import request from '@/utils/request'

// 查询列表
export function calendarList(query){
  return request({
    url: '/task/reg/calendar/list',
    method: 'get',
    params: query
  })
}
// 查找部门
export function selectDeptTree(type) {
  return request({
    url: '/business/business/selectDeptTree',
    method: 'get',
    params: { type }
  })
}

// 根据id查找抄送人
export function selectUserByDeptId(DeptId) {
  return request({
    url: '/business/business/selectUserByDeptId',
    method: 'get',
    params: { DeptId } // 将 contractNo 放在一个对象中, 以确保参数名称一致
  })
}

// 新增登记
export function addrl(data) {
  return request({
    url: '/task/reg/calendar/add',
    method: 'post',
    data: data
  })
}

   // 查询列表
export function contractListrl(taskNumber){
      return request({
      url: '/task/reg/getTaskRegNumber',
      method: 'get',
      params: {taskNumber}
 })
}
